import request from '@/utils/request'

// 查询领料列表列表
export function listAccessories(query) {
  return request({
    url: '/system/accessories/list',
    method: 'get',
    params: query
  })
}

// 查询领料列表详细
export function getAccessories(id) {
  return request({
    url: '/system/accessories/' + id,
    method: 'get'
  })
}

// 新增领料列表
export function addAccessories(data) {
  return request({
    url: '/system/accessories',
    method: 'post',
    data: data
  })
}

// 修改领料列表
export function updateAccessories(data) {
  return request({
    url: '/system/accessories',
    method: 'put',
    data: data
  })
}

// 删除领料列表
export function delAccessories(id) {
  return request({
    url: '/system/accessories/' + id,
    method: 'delete'
  })
}

// 分类名称下拉列表
export function listMaintenance(query) {
  return request({
    url: '/system/maintenance/list',
    method: 'get',
    params: query
  })
}
